projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
588064c
)
(using_x_p): New function.
author
Richard M. Stallman
<rms@gnu.org>
Sun, 5 Jun 1994 11:55:49 +0000
(11:55 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sun, 5 Jun 1994 11:55:49 +0000
(11:55 +0000)
src/xfns.c
patch
|
blob
|
history
diff --git
a/src/xfns.c
b/src/xfns.c
index 1693807e9f0799c2672738f160aeb541dc0391d1..4e3144e5dc42a79032239765db2b97d69e8b8ae6 100644
(file)
--- a/
src/xfns.c
+++ b/
src/xfns.c
@@
-249,6
+249,14
@@
check_x ()
error ("X windows are not in use or not initialized");
}
+/* Nonzero if using X for display. */
+
+int
+using_x_p ()
+{
+ return x_current_display != 0;
+}
+
/* Return the Emacs frame-object corresponding to an X window.
It could be the frame's main window or an icon window. */